package com.bank.service;

import com.bank.entity.Notice;
import com.bank.repository.NoticeRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NoticeService extends EntityService<Notice, NoticeRepo> {
    @Autowired
    protected NoticeService(NoticeRepo repo) {
        super(repo);
    }

    public Notice findNoticeByConferenceId(Integer conferenceId) {
        return repo.findNoticeByConferenceId(conferenceId);
    }

    public List<Notice> findAll() {
        return repo.findAll();
    }
}
